package com.jsb.laundry.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单物流商品明细
 * @TableName jsb_orders_fulfillment_item
 */
@TableName(value ="jsb_orders_fulfillment_item")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "JsbOrdersFulfillmentItem对象",description = "订单物流商品明细")
public class JsbOrdersFulfillmentItem implements Serializable {
    @ApiModelProperty(value = "自增id", dataType = "int")
    @TableId(type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "订单物流表id", dataType = "int")
    private Integer orderFulfillmentsId;

    @ApiModelProperty(value = "订单明细表id", dataType = "int")
    private int orderItemId;

    @ApiModelProperty(value = "商品id", dataType = "string")
    private String productId;

    @ApiModelProperty(value = "发货商品数量", dataType = "int")
    private int quantity;

    @ApiModelProperty(value = "创建时间", dataType = "date")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间", dataType = "date")
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}